<!--#include file="./doctype.html"-->
<title><%=editTitle%>大类-<%=siteTitle%>-后台管理</title>
</head><body>
<div class="wrap">
	<ol class="breadcrumb">
		<li><a href="<%=fileName%>?q=index">列表首页</a></li>
		<li class="active"><a href="javascript:;" class="reload"><%=editTitle%></a></li>
	</ol>
	<% if iid = 0 then %>
	<div class="alert alert-success">
		<span class="close" data-dismiss="alert">&times;</span>
		<strong>注意：</strong>大类添加后所属大类类型就将不可修改！
	</div>
	<% end if%>
	<form method="post" action="<%=fileName%>?q=save" class="mb10" role="form">
		<input type="hidden" name="id" value="<%=iid%>">
		<div class="form-group fix">
			<input id="genreName" name="genreName" class="form-control inline w30" placeholder="大类名称" value="<%=data(0)%>" />
			<label class="inline control-label" for="genreName">大类名称</label>
		</div>
		<div class="form-group fix">
			<input id="genreShortName" name="genreShortName" class="form-control inline w30" placeholder="项目名称" value="<%=data(1)%>" />
			<label class="inline control-label" for="genreShortName">项目名称</label>
		</div>
		<div class="form-group fix">
			<input id="genreUnit" name="genreUnit" class="form-control inline w30" placeholder="项目单位" value="<%=data(2)%>" />
			<label class="inline control-label" for="genreShortName">项目单位</label>
		</div>
		<%
		dim allType, cur
        allType = array("不限", "产品类", "留言类", "文章类")
        if iid = 0 then
        	%>
			<div class="form-group fix">
			<select id="genreType" name="genreType" class="form-control inline w30">
			<% for i = 1 to 3 %>
				<option value="<%=i%>"<%if i = data(3) then%> selected="selected"<%end if%>><%=allType(i)%></option>
			<% next %>
			</select>
			<label for="genreType" class="inline control-label">大类所属类型</label>
		</div>
		<% end if%>
		<div class="form-group fix">
			<div class="inline w30 view_id" data-name="genreViewID" data-id="<%=data(4)%>"></div>
			<label for="genreViewID" class="inline control-label">大类首页模板</label>
		</div>
		<div class="form-group fix">
			<label class="btn btn-sm btn-default control-label">
                <input name="isStop" value="<%=data(5)%>" type="checkbox"
                <% if app.cj_bool(data(5)) then %>checked="checked"<% End if %>
                > 是否禁用？
            </label>
		</div>
		<div class="form-group fix text-center submit_box"></div>
	</form>
    <!--#include file="loadTime.html"-->
</div>
<script>
$(document).ready(function() {
	$('.view_id').getView();
	$('#genreName,#genreShortName,#genreUnit').checkEmpty();
$(this)
	.on('submit', 'form', function(){
		return $.submitForm('#genreName,#genreShortName,#genreUnit');
	});
});
</script>
</body>
</html>